package com.emm.yixun.website.vo.estate;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.alibaba.fastjson.annotation.JSONField;
import com.emm.yixun.common.model.ProjectSetting;

import net.sf.oval.constraint.NotEmpty;

public class ProjectSettingVo extends ProjectSetting{
	/**
	 *外键、关联房产项目表（pro_tm_project）
	 */
	@NotEmpty(message="项目ID不能为空!")
	private Long projectId;
	/**
	 *房产项目表（pro_tm_project）,冗余字段
	 */
	@NotEmpty(message="项目code不能为空!")
	private String projectCode;
	/**
	 *外键、关联商户信息表（tm_mer_merchant）、项目数据权限要求字段
	 */
	@NotEmpty(message="商户ID不能为空!")
	private Long merchantId;
	/**
	 *部门数据权限要求字段
	 */
	@NotEmpty(message="用户编码不能为空!")
	private String userCode;
	/**
	 *项目数据权限字段
	 */
	@NotEmpty(message="项目数据权限code不能为空!")
	private String accessCode;
	
	/**
	 *开盘时间
	 */
	@DateTimeFormat (pattern="yyyy-MM-dd")
	private Date openTime;
	
	/**
	 *创建人ID,关联用户表
	 */
	@NotEmpty(message="创建人ID不能为空!")
	private Long createUserId;
	/**
	 *创建时间格式：yyyy-MM-dd HH:mm:ss
	 */
	@JSONField (format="yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	/**
	 *修改时间格式：yyyy-MM-dd HH:mm:ss
	 */
	@JSONField (format="yyyy-MM-dd HH:mm:ss")
	private Date updateTime;
	public Long getProjectId() {
		return projectId;
	}
	public void setProjectId(Long projectId) {
		this.projectId = projectId;
	}
	public String getProjectCode() {
		return projectCode;
	}
	public void setProjectCode(String projectCode) {
		this.projectCode = projectCode;
	}
	public Long getMerchantId() {
		return merchantId;
	}
	public void setMerchantId(Long merchantId) {
		this.merchantId = merchantId;
	}
	public String getUserCode() {
		return userCode;
	}
	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}
	public String getAccessCode() {
		return accessCode;
	}
	public void setAccessCode(String accessCode) {
		this.accessCode = accessCode;
	}
	public Date getOpenTime() {
		return openTime;
	}
	public void setOpenTime(Date openTime) {
		this.openTime = openTime;
	}
	public Long getCreateUserId() {
		return createUserId;
	}
	public void setCreateUserId(Long createUserId) {
		this.createUserId = createUserId;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
	
}
